cd C:\CDP

use "C:\IMF GDPPC PPP", clear
sort year
merge year using "C:\US GDP Deflators"
drop _merge
sort iso3 year
rename imfgpcppp gpc
gen usdefl=usdefl05/100
replace gpc=gpc/usdefl
gen my=mod(year,5)
keep if my==0
drop if year==2015
sort iso3 year
bysort iso3: gen gpc1=gpc[_n-1]
gen lgpc1=log(gpc1)
gen grgpc=(gpc-gpc1)/gpc1
bysort iso3: gen grgpc1=grgpc[_n-1]
drop if grgpc1==.

reg grgpc grgpc1 lgpc1 

*outreg using "GrowthReg",replace

drop if grgpc==.
egen tic=tag(iso3)
keep if tic==1
edit country


